import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入全局的样式文件
import "./assets/css/global.less"
import axios from "axios"
//对服务端进行webSocket的连接
import SocketService from './utils/socket_service'
SocketService.Instance.connect();
//将SocketService对象挂载到vue的原型对象上
Vue.prototype.$socket = SocketService.Instance;
//引入字体文件
import "./assets/font/iconfont.css"
axios.defaults.baseURL = "http://localhost:8888/api"

//将全局echarts对象挂载到Vue的原型对象上
Vue.prototype.$echarts = window.echarts
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
